package edu.task.snake.model;

/**
 * Created by Sergei_Kozlov on 18.11.2014.
 */
public class SnakeElement implements Position {
    private int x = 0;
    private int y = 0;
    private boolean isFirst;
    private boolean isLast;


    public SnakeElement(int x, int y, boolean isFirst, boolean isLast) {
        this.x = x;
        this.y = y;
        this.isFirst = isFirst;
        this.isLast = isLast;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public boolean isFirst() {
        return isFirst;
    }

    public void setFirst(boolean isFirst) {
        this.isFirst = isFirst;
    }

    public boolean isLast() {
        return isLast;
    }

    public void setLast(boolean isLast) {
        this.isLast = isLast;
    }
}
